package rose

import (
	"fmt"
)

func getBaseLine() string {
	var baseLine string
	fmt.Println("OMGHAI!")
	baseLine = baseLine + "OMGHAI!"
	var items = []*Item{
		{"+5 Dexterity Vest", 10, 20},
		{"Aged Brie", 2, 0},
		{"Elixir of the Mongoose", 5, 7},
		{"Sulfuras, Hand of Ragnaros", 0, 80},
		{"Sulfuras, Hand of Ragnaros", -1, 80},
		{"Backstage passes to a TAFKAL80ETC concert", 15, 20},
		{"Backstage passes to a TAFKAL80ETC concert", 10, 49},
		{"Backstage passes to a TAFKAL80ETC concert", 5, 49},
		{"Conjured Mana Cake", 3, 6}, // <-- :O
	}

	days := 2
	//var err error
	//if len(os.Args) > 1 {
	//	days, err = strconv.Atoi(os.Args[1])
	//	if err != nil {
	//		fmt.Println(err.Error())
	//		baseLine = baseLine + err.Error()
	//		os.Exit(1)
	//	}
	//	days++
	//}

	for day := 0; day < days; day++ {
		fmt.Printf("-------- day %d --------\n", day)
		//baseLine = baseLine + "-------- day " + string(day) + " --------"
		fmt.Println("name, sellIn, quality")
		for i := 0; i < len(items); i++ {
			fmt.Println(items[i])
			baseLine = baseLine + ToString(*items[i])
		}
		fmt.Println("")
		baseLine = baseLine + ""
		UpdateQuality(items)
	}

	return baseLine
}
